package cn.cvs.compute;

import cn.cvs.compute.Factory.ComputeFactory;
import cn.cvs.compute.Factory.ComputeFactoryInterface;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        String c="";
        Scanner out=new Scanner(System.in);

        System.out.println("第一个数：");
        int i = out.nextInt();
        System.out.println("运算符：");
        c = out.next();
        ComputeFactoryInterface computeDao=  ComputeFactory.count(c);
        System.out.println("第二个数：");
        int i1 = out.nextInt();
        ComputeDao count = computeDao.getInterface();
        int count1 = count.count(i, i1);
        System.out.println("计算结果："+count1);


    }
}
